<?php
class DeanController extends Zend_Controller_Action {
	
	public $logger;
	public $config;
	
	public function init(){
		parent::init();

		$this->logger = LogFactory::getInstance()->getLogger();

		$this->config = ConfigFactory::getInstance()->getConfig();
		
		$languageFactory = LanguageFactory::getInstance();
		$languageFactory->init($this->config->application->lang);
	}
	
	public function preDispatch(){
		$this->logger->info("DeanController::preDispatch ".$this->getRequest()->getControllerName()." ".$this->getRequest()->getActionName());
	}
	
	public function disableLayout() {
		$this->_helper->viewRenderer->setNoRender ( true );
		$this->_helper->layout->disableLayout ();
		$this->_helper->removeHelper ( 'viewRenderer' );
	}
}